# -*- encoding:utf-8 -*-
"""
@作者：ven
@文件名：case.py
@时间：2023-03-08  14:12
@文档说明: 病例
"""
import random

from common.baseApi import BaseAPI
from common.common import f


class Person(BaseAPI):

    def add_personal_information(self):
        # 1.添加个人信息、姓名、性别、身份证号、手机号、职业、职务、工作单位、学习调衡年限
        pass


class Patient(BaseAPI):

    def add_patient(self):
        # 1.添加患者，姓名、年龄、性别、手机号
        pass

    def add_inquiry(self):
        # 1.添加问诊信息
        pass


class Case(BaseAPI):
    pass
    # def add(self):
    #     # 1.添加病例
    #     payload = {
    #         "diagnose": {
    #             "mainSuit": "主诉",
    #             "symptoms": "症状",
    #             "diseaseCourse": "病程",
    #             "diseaseName": "病名",
    #             "diseaseReason": "病根",
    #             "unbalanceMode": "sxsh",
    #             "severity": "QD"
    #         },
    #         "diagnoseImage": {
    #             "category": "bbz",
    #             "imageName": "无极剑圣背部照.jpg",
    #             "imagePath": "E:/upload/base/record/1678156522480.jpg",
    #             "imagePointPath": None,
    #             "imagePointUrl": None,
    #             "imageUrl": "http://192.168.30.66:8085/bmms/files/record/1678156522480.jpg",
    #             "point": "1,2,3,4"
    #         },
    #         "patient": {
    #             "age": "28",
    #             "name": "孙心",
    #             "phone": None,
    #             "sex": "FEMALE"
    #         },
    #         "tags": [{
    #             "id": 22,
    #             "doctorId": 7,
    #             "name": "系统标签1",
    #             "caseNum": 0,
    #             "type": None,
    #             "checked": True,
    #             "tagId": 22
    #         }]
    #     }


class Treat(BaseAPI):
    # 1.治疗
    payload = {
        "caseId": 25,
        "date": "2023-18-03",
        "diagnoseImages": [{
            "id": 15,
            "diagnoseId": 27,
            "category": "bbz",
            "point": "1,2,3,4",
            "imageUrl": "http://192.168.30.66:8085/bmms/files/record/1678156522480.jpg",
            "imagePath": "E:/upload/base/record/1678156522480.jpg",
            "imagePointUrl": None,
            "imagePointPath": None,
            "imageName": "无极剑圣背部照.jpg",
            "imageSize": 0
        }, {
            "id": 15,
            "diagnoseId": 27,
            "category": "bbz",
            "point": "1,2,3,4",
            "imageUrl": "http://192.168.30.66:8085/bmms/files/record/1678156522480.jpg",
            "imagePath": "E:/upload/base/record/1678156522480.jpg",
            "imagePointUrl": None,
            "imagePointPath": None,
            "imageName": "无极剑圣背部照.jpg",
            "imageSize": 0
        }],
        "method": "拔罐",
        "treatEffect": "30$"
    }
    pass


class Diagnose(BaseAPI):
    # 1.复诊
    url = 'https://bmms.shouhux.com:8088/bmms/diagnose/add'
    payload = {
        "caseId": 25,
        "date": "2023-03-20",
        "diagnoseImages": {
            "id": 15,
            "diagnoseId": 27,
            "category": "bbz",
            "point": "1,2,3,4",
            "imageUrl": "http://192.168.30.66:8085/bmms/files/record/1678156522480.jpg",
            "imagePath": "E:/upload/base/record/1678156522480.jpg",
            "imagePointUrl": None,
            "imagePointPath": None,
            "imageName": "无极剑圣背部照.jpg",
            "imageSize": 0
        },
        "diseaseCourse": "铁路",
        "diseaseName": "病名",
        "diseaseReason": "家里",
        "id": 27,
        "mainSuit": "菜",
        "severity": "zd",
        "severityName": "中度",
        "symptoms": "菜",
        "unbalanceMode": "qhsh",
        "unbalanceModeName": "前后失衡"
    }


class Tag(BaseAPI):
    pass


def delete_case(self):
    # 2.删除病例
    pass


def uploadImage():
    url = "https://bmms.shouhux.com:8088/bmms/upload/uploadImage"


def GetPoseAndLmk():
    # 调用算法的接口上传背影照
    url = "https://bmms.shouhux.com:12389/GetPoseAndLmk"
    payload = {
        "imageAddr": "https://bmms.shouhux.com:8088/bmms/files/backside/fcb33dce4c674ef9acc69c5e5b0ab9a3.jpg",
        "isLocal": False
    }
    res = {"Bbox": [400, 311, 726, 1433],
           "LandMark": {"Points": [
               [511, 458, 614, 460, 560, 507, 508, 509, 426, 556, 413, 744, 415, 871, 612, 508, 692, 560, 703, 754, 696,
                889, 495, 618, 515, 943, 616, 616, 592, 940, 558, 616, 557, 897, 498, 1151, 506, 1261, 530, 1369, 534,
                1429, 611, 1157, 601, 1261, 578, 1374, 575, 1427]],
               "pointNum": 25,
               "pointType": "BodyLandmark"},
           "Pose": {"backHeelFlush": True,
                    "handsDroopNaturally": True,
                    "standNaturally": True},
           "success": True}


if __name__ == '__main__':

    token='eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYmYiOjE2ODk3NTMzODMsImV4cCI6MTY5MDk2Mjk4MywiYXV0aFR5cGUiOiJXRUNIQVRfTUlOSSIsImlhdCI6MTY4OTc1MzM4MywidXNlcklkIjoyOSwidXNlcm5hbWUiOiIxODgyOTI2ODI0MCJ9.7BiASWz66fwxebeeFZZyfCQRRYBhm6dLwC2EYLZZNFQ'
    signMsg = 'dc6a51fd422c02ea198d4209b8670fa4'

    caseId = 7102
    ObjCase = Case(inToken=token, signMsg=signMsg)

    ObjDiagnose = Diagnose(inToken=token, signMsg=signMsg)
    diagnose_payload = {
        "caseId": caseId,
        "date": "2023-03-05",
        "diagnoseImages": {
            "id": 19,
            "diagnoseId": 31,
            "category": "bbz",
            "point": "1,2,3,4",
            "imageUrl": "http://192.168.30.66:8085/bmms/files/record/1678156522480.jpg",
            "imagePath": "E:/upload/base/record/1678156522480.jpg",
            "imagePointUrl": None,
            "imagePointPath": None,
            "imageName": "无极剑圣背部照.jpg",
            "imageSize": 0
        },
        "diseaseCourse": "5",
        "id": 31,
        "mainSuit": "口渴多饮3月，肢体末端麻木1月。",
        "symptoms": "3月来口干多饮，四肢乏力，饭量正常，体重减轻约10斤，未到医院检查及治疗。1个月前出现四肢麻木，以肢体末端为主，双侧基本对称，伴有视物模糊，但无复视。不伴有胸闷胸痛，无尿急、尿痛，无颈部肿块。昨来我院检查，测空腹血糖为14.1mmol/L，门诊以“糖尿病”收入院。病来患者精神稍软，纳佳，睡眠欠安，大小便尚调，体重下降约5Kq.",
        "diseaseName": "黄疸",
        "diseaseReason": "着凉",
        "unbalanceMode": "sxsh",
        "unbalanceModeName": "上下失衡"
    }

    ObjTreat = Treat(inToken=token, signMsg=signMsg)
    treat_payload = {
        "caseId": caseId,
        "date": "2023-03-18",
        "diagnoseImages": [{
            "id": 19,
            "diagnoseId": 31,
            "category": "bbz",
            "point": "1,2,3,4",
            "imageUrl": "http://192.168.30.66:8085/bmms/files/record/1678156522480.jpg",
            "imagePath": "E:/upload/base/record/1678156522480.jpg",
            "imagePointUrl": None,
            "imagePointPath": None,
            "imageName": "无极剑圣背部照.jpg",
            "imageSize": 0
        }, {
            "id": 19,
            "diagnoseId": 31,
            "category": "bbz",
            "point": "1,2,3,4",
            "imageUrl": "http://192.168.30.66:8085/bmms/files/record/1678156522480.jpg",
            "imagePath": "E:/upload/base/record/1678156522480.jpg",
            "imagePointUrl": None,
            "imagePointPath": None,
            "imageName": "无极剑圣背部照.jpg",
            "imageSize": 0
        }],
        "method": "针灸患者自诉于入院前4+年始无明显原因出现胸闷气短及头晕，时伴有心悸",
        "treatEffect": "18"
    }

    ObjTag = Tag(inToken=token)

    num = int(input('请输入测试模块1.添加病例 2.添加复诊 3.添加治疗 4.添加标签'))
    if num == 1:
        for i in range(1, 5):
            payload = {
                "diagnose": {
                    "mainSuit": "右上腹胀痛1月，伴黄疸半月。",
                    "symptoms": "患者于今年3月初起，感右上腹持续性胀痛，向后背部放射，平卧时加重。半月后出现巩膜、皮肤黄染及瘙痒，大便呈陶土色。无发热，伴有恶心、食欲不振，饭量由每餐150g减至50g。乏力、消瘦，体重自发病至今减轻5kg。在当地医院疑诊肝炎，用中药及对症治疗无效，黄疸进行性加重，来我院门诊以“阻塞性黄疸原因待查”收治。患者以往无上腹疼痛发作史，亦无呕血及黑便史。",
                    "diseaseCourse": "2",
                    "diseaseName": "腹部严重损伤",
                    "diseaseReason": "平卧时加重。半月后出现巩膜、皮肤黄染及瘙痒",
                    "unbalanceMode": "qhsh",
                    "severity": "zdd"
                },
                "diagnoseImage": {
                    "category": "bbz",
                    "imageName": "e46d2782f6944ada8e4beaec85070fb8.jpg",
                    "imagePath": "D:/upload/bmms/backside/e46d2782f6944ada8e4beaec85070fb8.jpg",
                    "imagePointPath": None,
                    "imagePointUrl": None,
                    "imageUrl": "https://bmms.shouhux.com:8088/bmms/files/backside/e46d2782f6944ada8e4beaec85070fb8.jpg",
                    "point": ""
                },
                "patient": {
                    "age": "33",
                    "name": "%s" % f.name(),
                    "phone": '%s' % f.phone_number(),
                    "sex": "FEMALE"
                },

                "tags": [{
                    "id": 97,
                    "doctorId": 7,
                    "name": "陕西",
                    "caseNum": 0,
                    "type": None,
                    "checked": True,
                    "tagId": 97
                }]
            }
            payload2 = {
                "diagnose": {
                    "mainSuit": "这是我的主诉",
                    "symptoms": "这是我的刻下症状疾病史",
                    "familyHistory": "这是家族史",
                    "menstrualHistory": "这是月经史",
                    "pastHistory": "这是既往史",
                    "allergyHistory": "这是过敏史",
                    "assistCheck": "这是辅助检查",
                    "diagnoseImageExtras": [{
                        "fileName": "dcc9a5f60bd54ce8957bea4802a201f6.jpg",
                        "fileUrl": "https://bmms.shouhux.com:8088/bmms/files/checkImage/dcc9a5f60bd54ce8957bea4802a201f6.jpg",
                        "filePath": "D:/upload/bmms/checkImage/dcc9a5f60bd54ce8957bea4802a201f6.jpg",
                        "type": "DIAGNOSE_CHECK"
                    }, {
                        "fileName": "fd9b1765faee49779b9c1955d8e302ca.jpg",
                        "fileUrl": "https://bmms.shouhux.com:8088/bmms/files/caseImage/fd9b1765faee49779b9c1955d8e302ca.jpg",
                        "filePath": "D:/upload/bmms/caseImage/fd9b1765faee49779b9c1955d8e302ca.jpg",
                        "type": "DIAGNOSE_CASE"
                    }, {
                        "image": "https://bmms.shouhux.com:8088/bmms/files/backside/7bfca6a1d5b247948cd7967d24a77d4d.jpg",
                        "type": "DIAGNOSE_CHECK"
                    }],
                    "diseaseName": "这是我的诊断结果",
                    "diseaseReason": "中医证型",
                    "unbalanceMode": "sxsh,nwsh",
                    "severity": "zdd",
                    "severityName": "重度",
                    "unbalanceModeName": "上下失衡,内外失衡",
                    "suggestedSolution": "1,0,0,1",
                    "treatPeriod": "每天一次，持续一年",
                    "pulseCondition": "这是我的脉象",
                    "tonguePicture": "这是我的舌象"
                },
                "diagnoseCheckMap": {
                    "HEEL_HIP_TEST": "left",
                    "HEAD_FOUR_CHARACTERS": "right",
                    "BACK_FOUR_CHARACTERS": "both",
                    "PATELLAR_COMPRESSION": "none",
                    "LEG_FOUR_CHARACTERS": "none",
                    "SHOULDER_SUPINATION": "both",
                    "SHOULDER_PRONATION": "right",
                    "NOT_STANDING_PALM": "left",
                    "LONG_SHORT_LEGS": "右_短短"
                },
                "diagnoseImage": {
                    "category": "bbz",
                    "imageName": "1baad042f55a4f23958eb243a4707f23.jpg",
                    "imagePath": "D:/upload/bmms/backside/1baad042f55a4f23958eb243a4707f23.jpg",
                    "imagePointPath": None,
                    "imagePointUrl": None,
                    "imageUrl": "https://bmms.shouhux.com:8088/bmms/files/backside/1baad042f55a4f23958eb243a4707f23.jpg",
                    "point": "[{\"x\":173,\"y\":167,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":0},{\"x\":233,\"y\":169,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":2},{\"x\":203,\"y\":188,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":4},{\"x\":163,\"y\":189,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":6},{\"x\":129,\"y\":202,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":8},{\"x\":120,\"y\":264,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":10},{\"x\":125,\"y\":310,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":12},{\"x\":243,\"y\":191,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":14},{\"x\":278,\"y\":203,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":16},{\"x\":285,\"y\":265,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":18},{\"x\":280,\"y\":311,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":20},{\"x\":171,\"y\":226,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":22},{\"x\":179,\"y\":326,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":24},{\"x\":233,\"y\":225,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":26},{\"x\":222,\"y\":326,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":28},{\"x\":202,\"y\":224,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":30},{\"x\":200,\"y\":308,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":32},{\"x\":170,\"y\":388,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":34},{\"x\":177,\"y\":421,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":36},{\"x\":189,\"y\":450,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":38},{\"x\":192,\"y\":471,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":40},{\"x\":233,\"y\":386,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":42},{\"x\":228,\"y\":422,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":44},{\"x\":216,\"y\":453,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":46},{\"x\":215,\"y\":468,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":48}]"
                },
                "patient": {
                    "age": "22",
                    "name": "%s" % f.name(),
                    "phone": '%s' % f.phone_number(),
                    "sex": "FEMALE"
                },
                "tags": [{
                    "id": 219,
                    "doctorId": 10,
                    "name": "肿瘤",
                    "caseNum": 0,
                    "type": None,
                    "checked": True,
                    "tagId": 219
                }, {
                    "id": 233,
                    "doctorId": 10,
                    "name": "重疾",
                    "caseNum": 0,
                    "type": None,
                    "checked": True,
                    "tagId": 233
                }]
            }
            payload_0607 = {
                "diagnose": {
                    "mainSuit": "",
                    "symptoms": "",
                    "familyHistory": "",
                    "menstrualHistory": "",
                    "pastHistory": "",
                    "allergyHistory": "",
                    "assistCheck": "",
                    "diseaseName": "",
                    "diseaseReason": "",
                    "unbalanceMode": "",
                    "severity": "",
                    "severityName": "",
                    "unbalanceModeName": ""
                },
                "diagnoseImage": {
                    "category": "bbz",
                    "imageName": "668053342dd641719958f82e4a1beeb6.jpg",
                    "imagePath": "D:/upload/bmms/backside/668053342dd641719958f82e4a1beeb6.jpg",
                    "imageUrl": "https://bmms.shouhux.com:8088/bmms/files/backside/668053342dd641719958f82e4a1beeb6.jpg",
                    "point": "[{\"x\":191,\"y\":196,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":0},{\"x\":308,\"y\":207,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":2},{\"x\":252,\"y\":259,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":4},{\"x\":191,\"y\":272,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":6},{\"x\":102,\"y\":301,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":8},{\"x\":79,\"y\":519,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":10},{\"x\":96,\"y\":671,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":12},{\"x\":312,\"y\":260,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":14},{\"x\":403,\"y\":300,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":16},{\"x\":424,\"y\":517,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":18},{\"x\":422,\"y\":665,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":20},{\"x\":202,\"y\":388,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":22},{\"x\":215,\"y\":736,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":24},{\"x\":307,\"y\":389,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":26},{\"x\":304,\"y\":734,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":28},{\"x\":252,\"y\":399,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":30},{\"x\":256,\"y\":683,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":32},{\"x\":204,\"y\":946,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":34},{\"x\":216,\"y\":1063,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":36},{\"x\":238,\"y\":1173,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":38},{\"x\":241,\"y\":1216,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":40},{\"x\":322,\"y\":942,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":42},{\"x\":310,\"y\":1054,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":44},{\"x\":280,\"y\":1180,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":46},{\"x\":283,\"y\":1225,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":48}]",
                    "afterImageUrl": "https://bmms.shouhux.com:8088/bmms/files/backside/7a7b19588dc442c59839ac533471edd7.jpg",
                    "afterImagePoint": "[{\"x\":221.05263157894737,\"y\":229.23976608187132,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":0},{\"x\":357.89473684210526,\"y\":242.1052631578947,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":2},{\"x\":292.39766081871346,\"y\":302.9239766081871,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":4},{\"x\":221.05263157894737,\"y\":318.12865497076024,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":6},{\"x\":116.95906432748538,\"y\":352.046783625731,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":8},{\"x\":90.05847953216374,\"y\":607.0175438596491,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":10},{\"x\":109.94152046783626,\"y\":784.7953216374268,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":12},{\"x\":362.57309941520464,\"y\":304.093567251462,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":14},{\"x\":469.00584795321635,\"y\":350.8771929824561,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":16},{\"x\":493.5672514619883,\"y\":604.6783625730994,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":18},{\"x\":491.2280701754386,\"y\":777.7777777777777,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":20},{\"x\":233.91812865497076,\"y\":453.80116959064327,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":22},{\"x\":249.12280701754383,\"y\":860.8187134502923,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":24},{\"x\":356.7251461988304,\"y\":454.9707602339181,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":26},{\"x\":353.2163742690058,\"y\":858.4795321637426,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":28},{\"x\":292.39766081871346,\"y\":466.66666666666663,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":30},{\"x\":297.07602339181284,\"y\":798.8304093567251,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":32},{\"x\":236.25730994152045,\"y\":1106.4327485380115,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":34},{\"x\":250.2923976608187,\"y\":1243.2748538011695,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":36},{\"x\":276.0233918128655,\"y\":1371.9298245614034,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":38},{\"x\":279.53216374269005,\"y\":1422.2222222222222,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":40},{\"x\":374.26900584795317,\"y\":1101.7543859649122,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":42},{\"x\":360.233918128655,\"y\":1232.748538011696,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":44},{\"x\":325.14619883040933,\"y\":1380.1169590643274,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":46},{\"x\":328.6549707602339,\"y\":1432.748538011696,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":48}]",
                    "x": 2,
                    "y": 0,
                    "multiple": 1.1695906432748537
                },
                "diagnoseImageExtras": [None],
                "patient": {
                    "age": 33,
                    "name": "%s" % f.name(),
                    "birthday": "2010-06-07",
                    "phone": '%s' % f.phone_number(),
                    "sex": "MALE"
                },
                "tags": [],
                "treatAddReq": {}
            }
            payload_only_base_info = {
                "diagnose": {
                    "mainSuit": "",
                    "symptoms": "",
                    "familyHistory": "",
                    "menstrualHistory": "",
                    "pastHistory": "",
                    "allergyHistory": "",
                    "assistCheck": "",
                    "diseaseName": "",
                    "diseaseReason": "",
                    "unbalanceMode": "",
                    "severity": "",
                    "severityName": "",
                    "unbalanceModeName": ""
                },
                "diagnoseImage": {
                    "category": "bbz",
                    "imageName": None,
                    "imagePath": None,
                    "imageUrl": None,
                    "point": "",
                    "afterImageUrl": None
                },
                "diagnoseImageExtras": [None],
                "patient": {
                    "age": 33,
                    "name": "%s" % '9125'+f.name(),
                    "birthday": "2010-06-07",
                    "phone": '%s' % f.phone_number(),
                    "sex": "MALE"
                },
                "tags": [],
                "treatAddReq": {}
            }
            payload_0612 = {
                "diagnose": {
                    "mainSuit": "头痛",
                    "symptoms": "头疼",
                    "familyHistory": "",
                    "menstrualHistory": "",
                    "pastHistory": "",
                    "allergyHistory": "",
                    "assistCheck": "",
                    "diseaseName": "风湿",
                    "diseaseReason": "",
                    "unbalanceMode": "zysh",
                    "severity": "",
                    "severityName": "",
                    "unbalanceModeName": "左右失衡",
                    "suggestedSolution": "1,0,0,0",
                    "pulseCondition": " 左寸(,沉强)左关(,沉平)左尺(,沉强) 右寸(浮平)右关(,沉平)右尺(,沉平)",
                    "tonguePicture": ""
                },
                "diagnoseCheckMap": {},
                "diagnoseImage": {
                    "category": "bbz",
                    "imageName": "81037ba94e794c05a6b7836b140beb64.jpg",
                    "imagePath": "D:/upload/bmms/backside/81037ba94e794c05a6b7836b140beb64.jpg",
                    "imageUrl": "https://bmms.shouhux.com:8088/bmms/files/backside/81037ba94e794c05a6b7836b140beb64.jpg",
                    "point": "[{\"x\":375,\"y\":439,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":0},{\"x\":527,\"y\":443,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":2},{\"x\":451,\"y\":522,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":4},{\"x\":373,\"y\":533,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":6},{\"x\":267,\"y\":599,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":8},{\"x\":254,\"y\":891,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":10},{\"x\":271,\"y\":1061,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":12},{\"x\":526,\"y\":522,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":14},{\"x\":646,\"y\":577,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":16},{\"x\":673,\"y\":875,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":18},{\"x\":674,\"y\":1052,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":20},{\"x\":378,\"y\":693,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":22},{\"x\":424,\"y\":1137,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":24},{\"x\":536,\"y\":690,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":26},{\"x\":527,\"y\":1138,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":28},{\"x\":458,\"y\":691,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":30},{\"x\":478,\"y\":1074,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":32},{\"x\":401,\"y\":1428,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":34},{\"x\":415,\"y\":1584,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":36},{\"x\":449,\"y\":1721,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":38},{\"x\":457,\"y\":1794,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":40},{\"x\":560,\"y\":1413,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":42},{\"x\":548,\"y\":1574,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":44},{\"x\":522,\"y\":1723,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":46},{\"x\":516,\"y\":1808,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":48}]",
                    "afterImageUrl": "https://bmms.shouhux.com:8088/bmms/files/backside/3ea7c02fcf5c417c8981d342af2cc83b.jpg",
                    "afterImagePoint": "[{\"x\":198.93617021276594,\"y\":301.06382978723406,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":0},{\"x\":360.63829787234044,\"y\":305.3191489361702,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":2},{\"x\":279.78723404255317,\"y\":389.36170212765956,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":4},{\"x\":196.80851063829786,\"y\":401.06382978723406,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":6},{\"x\":84.04255319148936,\"y\":471.27659574468083,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":8},{\"x\":70.2127659574468,\"y\":781.9148936170212,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":10},{\"x\":88.29787234042553,\"y\":962.7659574468084,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":12},{\"x\":359.5744680851064,\"y\":389.36170212765956,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":14},{\"x\":487.2340425531915,\"y\":447.8723404255319,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":16},{\"x\":515.9574468085107,\"y\":764.8936170212766,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":18},{\"x\":517.0212765957447,\"y\":953.1914893617021,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":20},{\"x\":202.12765957446808,\"y\":571.2765957446809,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":22},{\"x\":251.06382978723403,\"y\":1043.6170212765958,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":24},{\"x\":370.2127659574468,\"y\":568.0851063829787,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":26},{\"x\":360.63829787234044,\"y\":1044.6808510638298,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":28},{\"x\":287.2340425531915,\"y\":569.1489361702128,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":30},{\"x\":308.51063829787233,\"y\":976.595744680851,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":32},{\"x\":226.59574468085106,\"y\":1353.191489361702,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":34},{\"x\":241.48936170212767,\"y\":1519.1489361702127,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":36},{\"x\":277.6595744680851,\"y\":1664.8936170212767,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":38},{\"x\":286.17021276595744,\"y\":1742.5531914893618,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":40},{\"x\":395.74468085106383,\"y\":1337.2340425531916,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":42},{\"x\":382.97872340425533,\"y\":1508.5106382978722,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":44},{\"x\":355.3191489361702,\"y\":1667.0212765957447,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":46},{\"x\":348.93617021276594,\"y\":1757.4468085106382,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":48}]",
                    "x": 188,
                    "y": 156,
                    "multiple": 1.0638297872340425
                },
                "diagnoseImageExtras": [{
                    "image": "https://bmms.shouhux.com:8088/bmms/files/tongueImage/29c7d56719864348ae22d32c9ba1e6b0.jpg",
                    "type": "FUNCTIONAL_CHECK_TONGUE"
                }],
                "patient": {
                    "age": 24,
                    "name": "%s" % f.name(),
                    "birthday": "2000-06-07",
                    "phone": '%s' % f.phone_number(),
                    "sex": "MALE"
                },
                "tags": [],
                "treatAddReq": {
                    "treatImages": [{
                        "category": "bbz",
                        "imageName": "81037ba94e794c05a6b7836b140beb64.jpg",
                        "imageUrl": "https://bmms.shouhux.com:8088/bmms/files/backside/81037ba94e794c05a6b7836b140beb64.jpg",
                        "imagePath": "D:/upload/bmms/backside/81037ba94e794c05a6b7836b140beb64.jpg",
                        "afterImageUrl": "https://bmms.shouhux.com:8088/bmms/files/backside/3ea7c02fcf5c417c8981d342af2cc83b.jpg",
                        "afterImagePoint": "[{\"x\":198.93617021276594,\"y\":301.06382978723406,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":0},{\"x\":360.63829787234044,\"y\":305.3191489361702,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":2},{\"x\":279.78723404255317,\"y\":389.36170212765956,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":4},{\"x\":196.80851063829786,\"y\":401.06382978723406,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":6},{\"x\":84.04255319148936,\"y\":471.27659574468083,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":8},{\"x\":70.2127659574468,\"y\":781.9148936170212,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":10},{\"x\":88.29787234042553,\"y\":962.7659574468084,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":12},{\"x\":359.5744680851064,\"y\":389.36170212765956,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":14},{\"x\":487.2340425531915,\"y\":447.8723404255319,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":16},{\"x\":515.9574468085107,\"y\":764.8936170212766,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":18},{\"x\":517.0212765957447,\"y\":953.1914893617021,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":20},{\"x\":202.12765957446808,\"y\":571.2765957446809,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":22},{\"x\":251.06382978723403,\"y\":1043.6170212765958,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":24},{\"x\":370.2127659574468,\"y\":568.0851063829787,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":26},{\"x\":360.63829787234044,\"y\":1044.6808510638298,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":28},{\"x\":287.2340425531915,\"y\":569.1489361702128,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":30},{\"x\":308.51063829787233,\"y\":976.595744680851,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":32},{\"x\":226.59574468085106,\"y\":1353.191489361702,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":34},{\"x\":241.48936170212767,\"y\":1519.1489361702127,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":36},{\"x\":277.6595744680851,\"y\":1664.8936170212767,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":38},{\"x\":286.17021276595744,\"y\":1742.5531914893618,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":40},{\"x\":395.74468085106383,\"y\":1337.2340425531916,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":42},{\"x\":382.97872340425533,\"y\":1508.5106382978722,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":44},{\"x\":355.3191489361702,\"y\":1667.0212765957447,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":46},{\"x\":348.93617021276594,\"y\":1757.4468085106382,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":48}]",
                        "x": 188,
                        "y": 156,
                        "multiple": 1.0638297872340425,
                        "point": "[{\"x\":375,\"y\":439,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":0},{\"x\":527,\"y\":443,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":2},{\"x\":451,\"y\":522,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":4},{\"x\":373,\"y\":533,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":6},{\"x\":267,\"y\":599,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":8},{\"x\":254,\"y\":891,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":10},{\"x\":271,\"y\":1061,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":12},{\"x\":526,\"y\":522,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":14},{\"x\":646,\"y\":577,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":16},{\"x\":673,\"y\":875,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":18},{\"x\":674,\"y\":1052,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":20},{\"x\":378,\"y\":693,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":22},{\"x\":424,\"y\":1137,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":24},{\"x\":536,\"y\":690,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":26},{\"x\":527,\"y\":1138,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":28},{\"x\":458,\"y\":691,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":30},{\"x\":478,\"y\":1074,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":32},{\"x\":401,\"y\":1428,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":34},{\"x\":415,\"y\":1584,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":36},{\"x\":449,\"y\":1721,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":38},{\"x\":457,\"y\":1794,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":40},{\"x\":560,\"y\":1413,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":42},{\"x\":548,\"y\":1574,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":44},{\"x\":522,\"y\":1723,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":46},{\"x\":516,\"y\":1808,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":48}]",
                        "process": "NOT_CORRECT",
                        "type": 0
                    }, {
                        "category": "bbz",
                        "imageName": "e1ef3917164c49b0b7e41bcd9f1cbf3b.jpg",
                        "imageUrl": "https://bmms.shouhux.com:8088/bmms/files/backside/e1ef3917164c49b0b7e41bcd9f1cbf3b.jpg",
                        "imagePath": "D:/upload/bmms/backside/e1ef3917164c49b0b7e41bcd9f1cbf3b.jpg",
                        "afterImageUrl": "https://bmms.shouhux.com:8088/bmms/files/backside/54390d7861dc47fc952083b062d0c6e9.jpg",
                        "afterImagePoint": "[{\"x\":200.9049773755656,\"y\":287.78280542986425,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":0},{\"x\":373.3031674208145,\"y\":309.50226244343895,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":2},{\"x\":289.1402714932127,\"y\":399.0950226244344,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":4},{\"x\":200.9049773755656,\"y\":393.6651583710407,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":6},{\"x\":59.72850678733032,\"y\":479.185520361991,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":8},{\"x\":32.57918552036199,\"y\":849.7737556561086,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":10},{\"x\":67.87330316742081,\"y\":1079.185520361991,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":12},{\"x\":371.9457013574661,\"y\":390.9502262443439,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":14},{\"x\":519.9095022624434,\"y\":475.11312217194575,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":16},{\"x\":538.9140271493213,\"y\":863.3484162895928,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":18},{\"x\":517.1945701357466,\"y\":1103.6199095022625,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":20},{\"x\":192.7601809954751,\"y\":616.289592760181,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":22},{\"x\":232.1266968325792,\"y\":1186.4253393665158,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":24},{\"x\":380.0904977375566,\"y\":620.3619909502263,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":26},{\"x\":352.94117647058823,\"y\":1176.923076923077,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":28},{\"x\":286.42533936651586,\"y\":614.9321266968326,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":30},{\"x\":291.8552036199095,\"y\":1099.5475113122172,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":32},{\"x\":203.61990950226246,\"y\":1551.5837104072398,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":34},{\"x\":226.69683257918552,\"y\":1740.2714932126698,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":36},{\"x\":261.99095022624437,\"y\":1928.9592760180997,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":38},{\"x\":271.49321266968326,\"y\":2034.841628959276,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":40},{\"x\":388.2352941176471,\"y\":1539.366515837104,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":42},{\"x\":373.3031674208145,\"y\":1749.7737556561087,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":44},{\"x\":343.43891402714934,\"y\":1941.1764705882354,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":46},{\"x\":336.65158371040724,\"y\":2026.6968325791856,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":48}]",
                        "x": 260,
                        "y": 211,
                        "multiple": 1.3574660633484164,
                        "point": "[{\"x\":408,\"y\":423,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":0},{\"x\":535,\"y\":439,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":2},{\"x\":473,\"y\":505,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":4},{\"x\":408,\"y\":501,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":6},{\"x\":304,\"y\":564,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":8},{\"x\":284,\"y\":837,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":10},{\"x\":310,\"y\":1006,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":12},{\"x\":534,\"y\":499,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":14},{\"x\":643,\"y\":561,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":16},{\"x\":657,\"y\":847,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":18},{\"x\":641,\"y\":1024,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":20},{\"x\":402,\"y\":665,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":22},{\"x\":431,\"y\":1085,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":24},{\"x\":540,\"y\":668,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":26},{\"x\":520,\"y\":1078,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":28},{\"x\":471,\"y\":664,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":30},{\"x\":475,\"y\":1021,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":32},{\"x\":410,\"y\":1354,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":34},{\"x\":427,\"y\":1493,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":36},{\"x\":453,\"y\":1632,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":38},{\"x\":460,\"y\":1710,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":40},{\"x\":546,\"y\":1345,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":42},{\"x\":535,\"y\":1500,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":44},{\"x\":513,\"y\":1641,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":46},{\"x\":508,\"y\":1704,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":48}]",
                        "process": "NOT_CORRECT",
                        "type": "1"
                    }],
                    "acupunctureInfo": "小八(左)|",
                    "moxibustionInfo": "",
                    "acupuncture": True,
                    "manipulation": False,
                    "moxibustion": False,
                    "tea": False,
                    "other": False
                }
            }
            payload_0612_01 = {
                "diagnose": {
                    "mainSuit": "肩膀疼",
                    "symptoms": "肩膀上下疼痛",
                    "familyHistory": "",
                    "menstrualHistory": "",
                    "pastHistory": "",
                    "allergyHistory": "",
                    "assistCheck": "",
                    "diseaseName": "肩膀疼痛",
                    "diseaseReason": "",
                    "unbalanceMode": "sxsh",
                    "severity": "",
                    "severityName": "",
                    "unbalanceModeName": "上下失衡",
                    "suggestedSolution": "1,0,0,0",
                    "pulseCondition": " 左寸(,沉强)左关(,沉弱)左尺(,沉弱) 右寸(,沉弱)右关(,沉弱)右尺(,沉弱)",
                    "tonguePicture": ""
                },
                "diagnoseCheckMap": {
                    "PATELLAR_COMPRESSION": "both",
                    "LEG_FOUR_CHARACTERS": "right",
                    "LONG_SHORT_LEGS": "左_短短"
                },
                "diagnoseImage": {
                    "category": "bbz",
                    "imageName": "974b4b279d9e4a1082d9de1f88ab88b3.jpg",
                    "imagePath": "D:/upload/bmms/backside/974b4b279d9e4a1082d9de1f88ab88b3.jpg",
                    "imageUrl": "https://bmms.shouhux.com:8088/bmms/files/backside/974b4b279d9e4a1082d9de1f88ab88b3.jpg",
                    "point": "[{\"x\":411,\"y\":407,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":0},{\"x\":563,\"y\":410,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":2},{\"x\":484,\"y\":487,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":4},{\"x\":409,\"y\":488,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":6},{\"x\":280,\"y\":559,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":8},{\"x\":261,\"y\":838,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":10},{\"x\":277,\"y\":1019,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":12},{\"x\":558,\"y\":484,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":14},{\"x\":687,\"y\":563,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":16},{\"x\":699,\"y\":851,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":18},{\"x\":680,\"y\":1034,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":20},{\"x\":397,\"y\":659,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":22},{\"x\":426,\"y\":1109,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":24},{\"x\":559,\"y\":668,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":26},{\"x\":527,\"y\":1108,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":28},{\"x\":484,\"y\":664,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":30},{\"x\":478,\"y\":1044,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":32},{\"x\":392,\"y\":1386,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":34},{\"x\":407,\"y\":1535,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":36},{\"x\":435,\"y\":1683,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":38},{\"x\":443,\"y\":1762,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":40},{\"x\":552,\"y\":1387,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":42},{\"x\":536,\"y\":1538,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":44},{\"x\":506,\"y\":1694,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":46},{\"x\":495,\"y\":1770,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":48}]",
                    "afterImageUrl": "https://bmms.shouhux.com:8088/bmms/files/backside/c0e270a8fd984fafa35401e7f301aff8.jpg",
                    "afterImagePoint": "[{\"x\":217.34104046242777,\"y\":262.4277456647399,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":0},{\"x\":393.06358381502895,\"y\":265.89595375722547,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":2},{\"x\":301.7341040462428,\"y\":354.9132947976879,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":4},{\"x\":215.02890173410407,\"y\":356.06936416184976,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":6},{\"x\":65.89595375722544,\"y\":438.1502890173411,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":8},{\"x\":43.930635838150295,\"y\":760.6936416184972,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":10},{\"x\":62.42774566473989,\"y\":969.942196531792,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":12},{\"x\":387.2832369942197,\"y\":351.44508670520236,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":14},{\"x\":536.4161849710983,\"y\":442.7745664739885,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":16},{\"x\":550.2890173410404,\"y\":775.7225433526012,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":18},{\"x\":528.3236994219653,\"y\":987.2832369942197,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":20},{\"x\":201.15606936416185,\"y\":553.7572254335261,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":22},{\"x\":234.6820809248555,\"y\":1073.9884393063585,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":24},{\"x\":388.43930635838154,\"y\":564.1618497109827,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":26},{\"x\":351.44508670520236,\"y\":1072.8323699421967,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":28},{\"x\":301.7341040462428,\"y\":559.5375722543353,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":30},{\"x\":294.7976878612717,\"y\":998.8439306358382,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":32},{\"x\":195.37572254335262,\"y\":1394.2196531791908,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":34},{\"x\":212.71676300578036,\"y\":1566.4739884393064,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":36},{\"x\":245.08670520231215,\"y\":1737.5722543352601,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":38},{\"x\":254.33526011560696,\"y\":1828.9017341040465,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":40},{\"x\":380.3468208092486,\"y\":1395.3757225433526,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":42},{\"x\":361.84971098265896,\"y\":1569.942196531792,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":44},{\"x\":327.1676300578035,\"y\":1750.2890173410406,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":46},{\"x\":314.45086705202317,\"y\":1838.1502890173413,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":48}]",
                    "x": 223,
                    "y": 180,
                    "multiple": 1.1560693641618498
                },
                "diagnoseImageExtras": [],
                "patient": {
                    "age": 33,
                    "name": "%s" % f.name(),
                    "birthday": "2010-06-07",
                    "phone": '%s' % f.phone_number(),
                    "sex": "MALE"
                },
                "tags": [],
                "treatAddReq": {
                    "treatImages": [{
                        "category": "bbz",
                        "imageName": "974b4b279d9e4a1082d9de1f88ab88b3.jpg",
                        "imageUrl": "https://bmms.shouhux.com:8088/bmms/files/backside/974b4b279d9e4a1082d9de1f88ab88b3.jpg",
                        "imagePath": "D:/upload/bmms/backside/974b4b279d9e4a1082d9de1f88ab88b3.jpg",
                        "afterImageUrl": "https://bmms.shouhux.com:8088/bmms/files/backside/c0e270a8fd984fafa35401e7f301aff8.jpg",
                        "afterImagePoint": "[{\"x\":217.34104046242777,\"y\":262.4277456647399,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":0},{\"x\":393.06358381502895,\"y\":265.89595375722547,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":2},{\"x\":301.7341040462428,\"y\":354.9132947976879,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":4},{\"x\":215.02890173410407,\"y\":356.06936416184976,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":6},{\"x\":65.89595375722544,\"y\":438.1502890173411,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":8},{\"x\":43.930635838150295,\"y\":760.6936416184972,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":10},{\"x\":62.42774566473989,\"y\":969.942196531792,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":12},{\"x\":387.2832369942197,\"y\":351.44508670520236,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":14},{\"x\":536.4161849710983,\"y\":442.7745664739885,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":16},{\"x\":550.2890173410404,\"y\":775.7225433526012,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":18},{\"x\":528.3236994219653,\"y\":987.2832369942197,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":20},{\"x\":201.15606936416185,\"y\":553.7572254335261,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":22},{\"x\":234.6820809248555,\"y\":1073.9884393063585,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":24},{\"x\":388.43930635838154,\"y\":564.1618497109827,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":26},{\"x\":351.44508670520236,\"y\":1072.8323699421967,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":28},{\"x\":301.7341040462428,\"y\":559.5375722543353,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":30},{\"x\":294.7976878612717,\"y\":998.8439306358382,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":32},{\"x\":195.37572254335262,\"y\":1394.2196531791908,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":34},{\"x\":212.71676300578036,\"y\":1566.4739884393064,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":36},{\"x\":245.08670520231215,\"y\":1737.5722543352601,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":38},{\"x\":254.33526011560696,\"y\":1828.9017341040465,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":40},{\"x\":380.3468208092486,\"y\":1395.3757225433526,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":42},{\"x\":361.84971098265896,\"y\":1569.942196531792,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":44},{\"x\":327.1676300578035,\"y\":1750.2890173410406,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":46},{\"x\":314.45086705202317,\"y\":1838.1502890173413,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":48}]",
                        "x": 223,
                        "y": 180,
                        "multiple": 1.1560693641618498,
                        "point": "[{\"x\":411,\"y\":407,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":0},{\"x\":563,\"y\":410,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":2},{\"x\":484,\"y\":487,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":4},{\"x\":409,\"y\":488,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":6},{\"x\":280,\"y\":559,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":8},{\"x\":261,\"y\":838,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":10},{\"x\":277,\"y\":1019,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":12},{\"x\":558,\"y\":484,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":14},{\"x\":687,\"y\":563,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":16},{\"x\":699,\"y\":851,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":18},{\"x\":680,\"y\":1034,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":20},{\"x\":397,\"y\":659,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":22},{\"x\":426,\"y\":1109,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":24},{\"x\":559,\"y\":668,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":26},{\"x\":527,\"y\":1108,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":28},{\"x\":484,\"y\":664,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":30},{\"x\":478,\"y\":1044,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":32},{\"x\":392,\"y\":1386,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":34},{\"x\":407,\"y\":1535,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":36},{\"x\":435,\"y\":1683,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":38},{\"x\":443,\"y\":1762,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":40},{\"x\":552,\"y\":1387,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":42},{\"x\":536,\"y\":1538,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":44},{\"x\":506,\"y\":1694,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":46},{\"x\":495,\"y\":1770,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":48}]",
                        "process": "NOT_CORRECT",
                        "type": 0
                    }, {
                        "category": "bbz",
                        "imageName": "5ff0295f5fbf47b5955457bbb433268d.jpg",
                        "imageUrl": "https://bmms.shouhux.com:8088/bmms/files/backside/5ff0295f5fbf47b5955457bbb433268d.jpg",
                        "imagePath": "D:/upload/bmms/backside/5ff0295f5fbf47b5955457bbb433268d.jpg",
                        "afterImageUrl": "https://bmms.shouhux.com:8088/bmms/files/backside/749939f4e4cf48d9ab884fa0dcc0676b.jpg",
                        "afterImagePoint": "[{\"x\":206.94789081885858,\"y\":293.30024813895784,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":0},{\"x\":373.69727047146404,\"y\":306.6997518610422,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":2},{\"x\":282.87841191066997,\"y\":401.98511166253104,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":4},{\"x\":205.4590570719603,\"y\":410.9181141439206,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":6},{\"x\":71.46401985111663,\"y\":479.40446650124073,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":8},{\"x\":56.575682382134,\"y\":850.1240694789083,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":10},{\"x\":66.99751861042184,\"y\":1097.27047146402,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":12},{\"x\":369.2307692307692,\"y\":399.0074441687345,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":14},{\"x\":504.7146401985112,\"y\":476.4267990074442,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":16},{\"x\":516.6253101736972,\"y\":844.1687344913151,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":18},{\"x\":515.136476426799,\"y\":1121.0918114143922,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":20},{\"x\":208.43672456575683,\"y\":605.9553349875931,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":22},{\"x\":226.302729528536,\"y\":1183.622828784119,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":24},{\"x\":363.2754342431762,\"y\":614.8883374689826,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":26},{\"x\":358.8089330024814,\"y\":1171.712158808933,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":28},{\"x\":282.87841191066997,\"y\":614.8883374689826,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":30},{\"x\":291.8114143920596,\"y\":1094.2928039702233,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":32},{\"x\":199.50372208436724,\"y\":1601.9851116625312,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":34},{\"x\":221.8362282878412,\"y\":1826.7990074441689,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":36},{\"x\":262.0347394540943,\"y\":2047.1464019851117,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":38},{\"x\":269.4789081885856,\"y\":2160.2977667493797,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":40},{\"x\":400.4962779156328,\"y\":1590.074441687345,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":42},{\"x\":381.14143920595535,\"y\":1826.7990074441689,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":44},{\"x\":348.38709677419354,\"y\":2045.6575682382136,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":46},{\"x\":339.454094292804,\"y\":2158.8089330024814,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":48}]",
                        "x": 254,
                        "y": 324,
                        "multiple": 1.488833746898263,
                        "point": "[{\"x\":393,\"y\":521,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":0},{\"x\":505,\"y\":530,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":2},{\"x\":444,\"y\":594,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":4},{\"x\":392,\"y\":600,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":6},{\"x\":302,\"y\":646,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":8},{\"x\":292,\"y\":895,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":10},{\"x\":299,\"y\":1061,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":12},{\"x\":502,\"y\":592,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":14},{\"x\":593,\"y\":644,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":16},{\"x\":601,\"y\":891,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":18},{\"x\":600,\"y\":1077,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":20},{\"x\":394,\"y\":731,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":22},{\"x\":406,\"y\":1119,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":24},{\"x\":498,\"y\":737,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":26},{\"x\":495,\"y\":1111,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":28},{\"x\":444,\"y\":737,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":30},{\"x\":450,\"y\":1059,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":32},{\"x\":388,\"y\":1400,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":34},{\"x\":403,\"y\":1551,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":36},{\"x\":430,\"y\":1699,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":38},{\"x\":435,\"y\":1775,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":40},{\"x\":523,\"y\":1392,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":42},{\"x\":510,\"y\":1551,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":44},{\"x\":488,\"y\":1698,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":46},{\"x\":482,\"y\":1774,\"isDrag\":false,\"w\":4,\"h\":4,\"order\":48}]",
                        "process": "NOT_CORRECT",
                        "type": "1"
                    }],
                    "manipulationInfo": "开胸三肌(左)|卡点肌群(右)|",
                    "moxibustionInfo": "",
                    "acupuncture": False,
                    "manipulation": True,
                    "moxibustion": False,
                    "tea": False,
                    "other": False
                }
            }
            add_case = ObjCase.add(json=payload_only_base_info)
            print(add_case.json())
    if num == 2:
        diagnose_payload2 = {
            "allergyHistory": "过敏史2",
            "assistCheck": "辅助检查",
            "caseId": caseId,
            "date": "2023-04-17",
            "diagnoseImage": {
                "category": "bbz",
                "imageName": "c405214be08447189027daaa062468dc.jpg",
                "imagePath": "D:/upload/bmms/backside/c405214be08447189027daaa062468dc.jpg",
                "imagePointPath": None,
                "imagePointUrl": None,
                "imageUrl": "https://bmms.shouhux.com:8088/bmms/files/backside/c405214be08447189027daaa062468dc.jpg",
                "point": "[{\"x\":173,\"y\":167,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":0},{\"x\":233,\"y\":169,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":2},{\"x\":203,\"y\":188,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":4},{\"x\":163,\"y\":189,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":6},{\"x\":129,\"y\":202,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":8},{\"x\":120,\"y\":264,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":10},{\"x\":125,\"y\":310,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":12},{\"x\":243,\"y\":191,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":14},{\"x\":278,\"y\":203,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":16},{\"x\":285,\"y\":265,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":18},{\"x\":280,\"y\":311,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":20},{\"x\":171,\"y\":226,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":22},{\"x\":179,\"y\":326,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":24},{\"x\":233,\"y\":225,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":26},{\"x\":222,\"y\":326,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":28},{\"x\":202,\"y\":224,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":30},{\"x\":200,\"y\":308,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":32},{\"x\":170,\"y\":388,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":34},{\"x\":177,\"y\":421,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":36},{\"x\":189,\"y\":450,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":38},{\"x\":192,\"y\":471,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":40},{\"x\":233,\"y\":386,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":42},{\"x\":228,\"y\":422,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":44},{\"x\":216,\"y\":453,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":46},{\"x\":215,\"y\":468,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":48}]"
            },
            "diagnoseImageExtras": [{
                "fileName": "45a76017c4334bf49ff2dcf436ef50a8.jpg",
                "fileUrl": "https://bmms.shouhux.com:8088/bmms/files/checkImage/45a76017c4334bf49ff2dcf436ef50a8.jpg",
                "filePath": "D:/upload/bmms/checkImage/45a76017c4334bf49ff2dcf436ef50a8.jpg",
                "type": "DIAGNOSE_CHECK"
            }, {
                "fileName": "e797c5ff3b384dc787b14387a0023371.jpg",
                "fileUrl": "https://bmms.shouhux.com:8088/bmms/files/caseImage/e797c5ff3b384dc787b14387a0023371.jpg",
                "filePath": "D:/upload/bmms/caseImage/e797c5ff3b384dc787b14387a0023371.jpg",
                "type": "DIAGNOSE_CASE"
            }],
            "diseaseCourse": "",
            "familyHistory": "家族史",
            "id": None,
            "mainSuit": "主诉信息",
            "menstrualHistory": "月经史",
            "pastHistory": "既往史",
            "symptoms": "刻下症及病史"
        }
        add_diagnose = ObjDiagnose.add(json=diagnose_payload2, )
        print(add_diagnose.json())
    if num == 3:
        # for i in range(10, 28):
        #     treat_payload.update({'date': '2023-01-%s' % i, 'treatEffect': '%s' % i})
        treat_payload2 = {
            "acupuncture": True,
            "acupunctureInfo": "针灸治疗222",
            "caseId": caseId,
            "date": "2023-04-17",
            "manipulation": True,
            "manipulationInfo": "推拿治疗",
            "method": "",
            "moxibustion": True,
            "moxibustionInfo": "艾灸治疗",
            "other": True,
            "otherInfo": "其他",
            "tea": False,
            "treatEffect": "",
            "treatImages": [{
                "category": "bbz",
                "imageName": "91b72b6660034509a5272853ca3445b4.jpg",
                "imagePath": "D:/upload/bmms/backside/91b72b6660034509a5272853ca3445b4.jpg",
                "imagePointPath": None,
                "imagePointUrl": None,
                "imageUrl": "https://bmms.shouhux.com:8088/bmms/files/backside/91b72b6660034509a5272853ca3445b4.jpg",
                "point": "[{\"x\":173,\"y\":167,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":0},{\"x\":233,\"y\":169,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":2},{\"x\":203,\"y\":188,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":4},{\"x\":163,\"y\":189,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":6},{\"x\":129,\"y\":202,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":8},{\"x\":120,\"y\":264,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":10},{\"x\":125,\"y\":310,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":12},{\"x\":243,\"y\":191,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":14},{\"x\":278,\"y\":203,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":16},{\"x\":285,\"y\":265,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":18},{\"x\":280,\"y\":311,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":20},{\"x\":171,\"y\":226,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":22},{\"x\":179,\"y\":326,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":24},{\"x\":233,\"y\":225,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":26},{\"x\":222,\"y\":326,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":28},{\"x\":202,\"y\":224,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":30},{\"x\":200,\"y\":308,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":32},{\"x\":170,\"y\":388,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":34},{\"x\":177,\"y\":421,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":36},{\"x\":189,\"y\":450,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":38},{\"x\":192,\"y\":471,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":40},{\"x\":233,\"y\":386,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":42},{\"x\":228,\"y\":422,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":44},{\"x\":216,\"y\":453,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":46},{\"x\":215,\"y\":468,\"isDrag\":False,\"w\":4,\"h\":4,\"order\":48}]",
                "type": 0
            }, {
                "category": "bbz",
                "imageName": "84a78f23ff114085bd90978f29e2e720.jpg",
                "imagePath": "D:/upload/bmms/backside/84a78f23ff114085bd90978f29e2e720.jpg",
                "imagePointPath": None,
                "imagePointUrl": None,
                "imageUrl": "https://bmms.shouhux.com:8088/bmms/files/backside/84a78f23ff114085bd90978f29e2e720.jpg",
                "point": "[]",
                "type": 1
            }]
        }
        add_treat = ObjTreat.add(json=treat_payload2, )
        print(add_treat.json())
    if num == 4:
        for i in range(10):
            tag_payload = {
                "name": '%s' % f.district()
            }
            add_tag = ObjTag.add(json=tag_payload)
            print(add_tag.json())
